package www.lagou.entity;

import java.util.Date;

public class employee {

    private int id;

    private String name;  //员工姓名

    private double age;  //员工年龄

    private String sex;   //员工性别

    private double salary;   //员工薪水

    private Date empdate;  //入职日期

    private int did;  //所属部门id

    private dept d;

    public employee() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getAge() {
        return age;
    }

    public void setAge(double age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public Date getEmpdate() {
        return empdate;
    }

    public void setEmpdate(Date empdate) {
        this.empdate = empdate;
    }

    public int getDid() {
        return did;
    }

    public void setDid(int did) {
        this.did = did;
    }

    public dept getD() {
        return d;
    }

    public void setD(dept d) {
        this.d = d;
    }

    @Override
    public String toString() {
        return "employee{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                ", salary=" + salary +
                ", empdate=" + empdate +
                ", did=" + did +
                ", d=" + d +
                '}';
    }
}
